package com.yun.blog.service.impl;

import com.yun.blog.service.OauthService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author : simple
 * @title : OauthContext
 * @projectName : dantouBlog-back
 * @description : 授权登录策略模式的策略管理器
 * @email : yun_simple@163.com
 * @date : 2023/5/31下午9:47
 */

@Service
public class OauthContext {

    @Resource
    Map<String, OauthService> map;

    public OauthService get(String type) {
        return map.get(type);
    }
}
